﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace QbiconEditor
{
  public class DrawPanel : Panel
  {
    public DrawPanel()
    {
        try
        {
            this.DoubleBuffered = true;
            this.SetStyle(ControlStyles.Selectable | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true);

            UpdateStyles();
        }
        catch (Exception e)
        {
            MessageBox.Show("Error: " + e.Message, "Qbicon Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
    }
  }
}
